[INFO] cloning repository https://github.com/psabau/Snake
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/psabau/Snake" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpsabau%2FSnake", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpsabau%2FSnake'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 91218e65e1591ef5ab5759e427d197c56c3fea4e
[INFO] fixing psabau/Snake against try#622891a4e29178280638a6b63a8908bde2c0c854+cargoflags=-Zfix-edition=end=2015,2024 for pr-157817-2
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpsabau%2FSnake" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'...
[INFO] [stderr] done.
[INFO] [stderr] Updating files:  65% (483/743)
Updating files:  66% (491/743)
Updating files:  67% (498/743)
Updating files:  68% (506/743)
Updating files:  69% (513/743)
Updating files:  70% (521/743)
Updating files:  71% (528/743)
Updating files:  72% (535/743)
Updating files:  73% (543/743)
Updating files:  74% (550/743)
Updating files:  75% (558/743)
Updating files:  76% (565/743)
Updating files:  77% (573/743)
Updating files:  78% (580/743)
Updating files:  79% (587/743)
Updating files:  80% (595/743)
Updating files:  81% (602/743)
Updating files:  82% (610/743)
Updating files:  83% (617/743)
Updating files:  84% (625/743)
Updating files:  85% (632/743)
Updating files:  86% (639/743)
Updating files:  87% (647/743)
Updating files:  88% (654/743)
Updating files:  89% (662/743)
Updating files:  90% (669/743)
Updating files:  91% (677/743)
Updating files:  92% (684/743)
Updating files:  93% (691/743)
Updating files:  94% (699/743)
Updating files:  95% (706/743)
Updating files:  96% (714/743)
Updating files:  97% (721/743)
Updating files:  98% (729/743)
Updating files:  99% (736/743)
Updating files: 100% (743/743)
Updating files: 100% (743/743), done.
[INFO] started tweaking git repo https://github.com/psabau/Snake
[INFO] finished tweaking git repo https://github.com/psabau/Snake
[INFO] tweaked toml for git repo https://github.com/psabau/Snake written to /workspace/builds/worker-5-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/psabau/Snake on toolchain 622891a4e29178280638a6b63a8908bde2c0c854
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/psabau/Snake already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/source:/opt/rustwide/workdir:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3a6becf2bc8dde7f3fa57ede90e4f284e72d296796fc446bbb1e2c7cc0530151" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] 6a8173b130b3690a007969eab25a53c607f4cc0303d14058c6451d12441317fe
[INFO] running `Command { std: "docker" "start" "6a8173b130b3690a007969eab25a53c607f4cc0303d14058c6451d12441317fe", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "6a8173b130b3690a007969eab25a53c607f4cc0303d14058c6451d12441317fe" "/opt/rustwide/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "6a8173b130b3690a007969eab25a53c607f4cc0303d14058c6451d12441317fe", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=" "-e" "RUSTDOCFLAGS=" "-w" "/opt/rustwide/workdir" "--user" "0:0" "6a8173b130b3690a007969eab25a53c607f4cc0303d14058c6451d12441317fe" "/opt/rustwide/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "fix" "--allow-no-vcs" "--allow-dirty" "--frozen" "--all" "--all-targets" "--message-format=json" "-Zfix-edition=end=2015,2024", kill_on_drop: false }`
[INFO] [stderr] crater-edition-check: migrating to next edition
[INFO] [stderr]    Migrating Cargo.toml from 2021 edition to 2024
[INFO] [stderr]    Compiling proc-macro2 v1.0.79
[INFO] [stderr]    Compiling unicode-ident v1.0.12
[INFO] [stderr]    Compiling wasm-bindgen-shared v0.2.92
[INFO] [stderr]    Compiling once_cell v1.19.0
[INFO] [stderr]    Compiling bumpalo v3.15.4
[INFO] [stderr]    Compiling log v0.4.21
[INFO] [stderr]    Compiling wasm-bindgen v0.2.92
[INFO] [stderr]    Compiling libc v0.2.153
[INFO] [stderr]     Checking cfg-if v1.0.0
[INFO] [stderr]     Checking lazy_static v1.4.0
[INFO] [stderr]     Checking unicode-width v0.1.11
[INFO] [stderr]    Compiling quote v1.0.35
[INFO] [stderr]     Checking console v0.15.8
[INFO] [stderr]    Compiling syn v2.0.55
[INFO] [stderr]    Compiling wasm-bindgen-backend v0.2.92
[INFO] [stderr]    Compiling wasm-bindgen-macro-support v0.2.92
[INFO] [stderr]    Compiling wasm-bindgen-macro v0.2.92
[INFO] [stderr]     Checking js-sys v0.3.69
[INFO] [stderr]     Checking web-sys v0.3.69
[INFO] [stderr]     Checking snake v0.1.0 (/opt/rustwide/workdir)
[INFO] [stderr]    Migrating src/lib.rs from 2021 edition to 2024
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]   --> src/lib.rs:35:26
[INFO] [stdout]    |
[INFO] [stdout] 35 |     let snake = unsafe { GAME_STATE.as_ref().unwrap().clone() };
[INFO] [stdout]    |                          ^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout]    = note: `--force-warn static-mut-refs` implied by `--force-warn rust-2024-compatibility`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]   --> src/lib.rs:70:30
[INFO] [stdout]    |
[INFO] [stdout] 70 |         if let Some(snake) = GAME_STATE.as_ref() {
[INFO] [stdout]    |                              ^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]   --> src/lib.rs:35:26
[INFO] [stdout]    |
[INFO] [stdout] 35 |     let snake = unsafe { GAME_STATE.as_ref().unwrap().clone() };
[INFO] [stdout]    |                          ^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout]    = note: `--force-warn static-mut-refs` implied by `--force-warn rust-2024-compatibility`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: creating a shared reference to mutable static
[INFO] [stdout]   --> src/lib.rs:70:30
[INFO] [stdout]    |
[INFO] [stdout] 70 |         if let Some(snake) = GAME_STATE.as_ref() {
[INFO] [stdout]    |                              ^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 17.68s
[INFO] [stderr] crater-edition-check: snake v0.1.0 (/opt/rustwide/workdir) updating edition from 2021 to 2024
[INFO] [stderr]     Checking snake v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `Window`
[INFO] [stdout]  --> src/lib.rs:3:39
[INFO] [stdout]   |
[INFO] [stdout] 3 | use web_sys::{console, KeyboardEvent, Window};
[INFO] [stdout]   |                                       ^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::canvas::Canvas`
[INFO] [stdout]  --> src/snake.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use crate::canvas::Canvas;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Window`
[INFO] [stdout]  --> src/lib.rs:3:39
[INFO] [stdout]   |
[INFO] [stdout] 3 | use web_sys::{console, KeyboardEvent, Window};
[INFO] [stdout]   |                                       ^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::canvas::Canvas`
[INFO] [stdout]  --> src/snake.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use crate::canvas::Canvas;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `document`
[INFO] [stdout]   --> src/lib.rs:27:9
[INFO] [stdout]    |
[INFO] [stdout] 27 |     let document = window.document().expect("should have a Document");
[INFO] [stdout]    |         ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_document`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `snake` (lib test) due to 2 previous errors; 5 warnings emitted
[INFO] [stdout] warning: field `canvas` is never read
[INFO] [stdout]  --> src/canvas.rs:5:9
[INFO] [stdout]   |
[INFO] [stdout] 4 | pub struct Canvas {
[INFO] [stdout]   |            ------ field in this struct
[INFO] [stdout] 5 |     pub canvas: HtmlCanvasElement,
[INFO] [stdout]   |         ^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] warning: methods `draw_border` and `display_scores` are never used
[INFO] [stdout]   --> src/canvas.rs:64:12
[INFO] [stdout]    |
[INFO] [stdout] 13 | impl Canvas {
[INFO] [stdout]    | ----------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 64 |     pub fn draw_border(&self) {
[INFO] [stdout]    |            ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 76 |     pub fn display_scores(&self, score: u32, high_score: u32) {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a shared reference to mutable static
[INFO] [stdout]   --> src/lib.rs:35:26
[INFO] [stdout]    |
[INFO] [stdout] 35 |     let snake = unsafe { GAME_STATE.as_ref().unwrap().clone() };
[INFO] [stdout]    |                          ^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout]    = note: `#[deny(static_mut_refs)]` (part of `#[deny(rust_2024_compatibility)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a shared reference to mutable static
[INFO] [stdout]   --> src/lib.rs:70:30
[INFO] [stdout]    |
[INFO] [stdout] 70 |         if let Some(snake) = GAME_STATE.as_ref() {
[INFO] [stdout]    |                              ^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `document`
[INFO] [stdout]   --> src/lib.rs:27:9
[INFO] [stdout]    |
[INFO] [stdout] 27 |     let document = window.document().expect("should have a Document");
[INFO] [stdout]    |         ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_document`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `canvas` is never read
[INFO] [stdout]  --> src/canvas.rs:5:9
[INFO] [stdout]   |
[INFO] [stdout] 4 | pub struct Canvas {
[INFO] [stdout]   |            ------ field in this struct
[INFO] [stdout] 5 |     pub canvas: HtmlCanvasElement,
[INFO] [stdout]   |         ^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `draw_border` and `display_scores` are never used
[INFO] [stdout]   --> src/canvas.rs:64:12
[INFO] [stdout]    |
[INFO] [stdout] 13 | impl Canvas {
[INFO] [stdout]    | ----------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 64 |     pub fn draw_border(&self) {
[INFO] [stdout]    |            ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 76 |     pub fn display_scores(&self, score: u32, high_score: u32) {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a shared reference to mutable static
[INFO] [stdout]   --> src/lib.rs:35:26
[INFO] [stdout]    |
[INFO] [stdout] 35 |     let snake = unsafe { GAME_STATE.as_ref().unwrap().clone() };
[INFO] [stdout]    |                          ^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout]    = note: `#[deny(static_mut_refs)]` (part of `#[deny(rust_2024_compatibility)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: creating a shared reference to mutable static
[INFO] [stdout]   --> src/lib.rs:70:30
[INFO] [stdout]    |
[INFO] [stdout] 70 |         if let Some(snake) = GAME_STATE.as_ref() {
[INFO] [stdout]    |                              ^^^^^^^^^^^^^^^^^^^ shared reference to mutable static
[INFO] [stdout]    |
[INFO] [stdout]    = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2024/static-mut-references.html>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `snake` (lib) due to 2 previous errors; 5 warnings emitted
[INFO] running `Command { std: "docker" "inspect" "6a8173b130b3690a007969eab25a53c607f4cc0303d14058c6451d12441317fe", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "6a8173b130b3690a007969eab25a53c607f4cc0303d14058c6451d12441317fe", kill_on_drop: false }`
[INFO] [stdout] 6a8173b130b3690a007969eab25a53c607f4cc0303d14058c6451d12441317fe
